var HRM={};
if (typeof String.prototype.trim !== 'function') {//trim方法
	String.prototype.trim = function() {
		return this.replace(/^\s+|\s+$/g, '');
	};
}
HRM.getTopLevelWindow=function(){
	var pw = window;
	while(pw!=pw.parent){
		if(!pw.parent.zving){
			return pw;
		}
		pw = pw.parent;
	}
	return pw;
};
HRM.getIframeHeight=function(){
};
HRM.rootWindow=HRM.getTopLevelWindow();
HRM.rootDocument=HRM.rootWindow.document;
HRM.pageHeight=function(){
	if($.browser.msie){
	return document.compatMode == "CSS1Compat"? document.documentElement.clientHeight :
	document.body.clientHeight;
	}else{
	return self.innerHeight;
	}
};
HRM.pageWidth=function() {
	if ($.browser.msie) {
		return document.compatMode == "CSS1Compat" ? document.documentElement.clientWidth
				: document.body.clientWidth;
	} else {
		return self.innerWidth;
	}
};
HRM.iframeHeight=HRM.pageHeight()-100;
HRM.iframeWidth=HRM.pageHeight()-100;
var isQuirks = document.compatMode == "BackCompat";
var isStrict = document.compatMode == "CSS1Compat";
var isGecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var isChrome = navigator.userAgent.toLowerCase().indexOf("chrome") != -1;
var isOpera = navigator.userAgent.toLowerCase().indexOf("opera") != -1;
var isIE = navigator.userAgent.toLowerCase().indexOf("msie") != -1 && !isOpera;
var isIE8 = navigator.userAgent.toLowerCase().indexOf("msie 8") != -1 && !!window.XDomainRequest && !!document.documentMode;
var isIE7 = navigator.userAgent.toLowerCase().indexOf("msie 7") != -1 && !isIE8;
var isIE6 = isIE && parseInt(navigator.userAgent.split(";")[1].replace(/(^\s*)|(\s*$)/g,"").split(" ")[1])<7;
var isBorderBox = isIE && isQuirks;

